// search label的宽度：labelCol
// label后面的input : wrapperCol
export const formLayoutProps = {
    labelCol: { span: 4 },
    labelAlign: "right",
    wrapperCol: { span: 16 },
    submitWrapperCol: { span: 16, offset: 4 },
};
// 修改的  一行两个
export const formLayoutProps2 = {
    labelCol: { span: 4 }, labelAlign: "right",
    wrapperCol: { span: 8 },
    submitWrapperCol: { span: 16, offset: 8 },
    layout: "horizontal",
};

export const searchProps = {
    bordered: false,
    class: "searchCard",
    form: {
        layout: "inline",
    },
    labelAlign: "right",
    labelCol: { span: 6 },
    wrapperCol: { span: 12 },
    submitWrapperCol: { span: 12, offset: 12 }
};

export const searchProps2 = {
    bordered: false,
    class: "searchCard",
    form: {
        layout: "inline",
    },
    labelCol: { span: 6 },
    wrapperCol: { span: 9 },
    submitWrapperCol: { span: 16, offset: 8 },
};

export const tableProps = {
    bordered: false,
    class: "tableCard",
    table: {
        size: "small",
        bordered: true,
        pagination: false,
        rowKey: "id",
    },
};

// export const colorProps = (idx: number) => {
//   //返回颜色
//   const list = ["success", "processing", "error", "warning", "default"];
//   return list[idx < 5 ? Math.abs(idx) : Math.floor(Math.random() * 4)];
// };
